package core.objects;

public class PublisherCategory extends BaseObject {

    public PublisherCategory(int id, String name) {
        super(id, name);
    }

    @Override
    public boolean equals(Object obj) {
        if (!(obj instanceof String)) {
            return false;
        }
        return getName().equals(obj);
    }

    @Override
    public Object[] toObjectArray() {
        return new Object[]{getName()};
    }
}
